package com.xhu.water_supply.web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 暴露给客户端的User视图
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel
public class UserVO {
    @ApiModelProperty("用户编号")
    private int id;
    @ApiModelProperty("登录账号")
    private String email;
    @ApiModelProperty("用户昵称")
    private String name;
    @ApiModelProperty("性别")
    private String sex;
    @ApiModelProperty("用户身份")
    private String card;
    @ApiModelProperty("用户头像")
    private String avatar;
    @ApiModelProperty("个性签名")
    private String description;
    @ApiModelProperty("注册日期")
    private Date beginTime;

}
